package com.zhongxi.guoyuan.entity.coinStore;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/6/28.
 */

public class SelcetPostCartGoodsAttrs implements Serializable{
    private String goodId;  //商品在购物车中的id
    private String goodsid;
    private String name;
    private String imgUrl;
    private String price;
    private String goodsnum;
    private String attrcollection;    //集合id
    private List<ItemGoodAttr> itemGoodAttrs;
    private String status;
    private String itemStatus;
    private String stocknum;
    private String backsilvernum;
    private String backinnernum;  //美豆
    private String backredbean;
    private String postage;
    private String getermethod;
    private String ordernum;
    private String goodstype;
    private boolean isSelected;

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    public String getGoodId() {
        return goodId;
    }

    public void setGoodId(String goodId) {
        this.goodId = goodId;
    }

    public String getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(String goodsid) {
        this.goodsid = goodsid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getGoodsnum() {
        return goodsnum;
    }

    public void setGoodsnum(String goodsnum) {
        this.goodsnum = goodsnum;
    }

    public List<ItemGoodAttr> getItemGoodAttrs() {
        return itemGoodAttrs;
    }

    public void setItemGoodAttrs(List<ItemGoodAttr> itemGoodAttrs) {
        this.itemGoodAttrs = itemGoodAttrs;
    }

    public String getAttrcollection() {
        return attrcollection;
    }

    public void setAttrcollection(String attrcollection) {
        this.attrcollection = attrcollection;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStocknum() {
        return stocknum;
    }

    public void setStocknum(String stocknum) {
        this.stocknum = stocknum;
    }

    public String getBacksilvernum() {
        return backsilvernum;
    }

    public void setBacksilvernum(String backsilvernum) {
        this.backsilvernum = backsilvernum;
    }

    public String getBackinnernum() {
        return backinnernum;
    }

    public void setBackinnernum(String backinnernum) {
        this.backinnernum = backinnernum;
    }

    public String getBackredbean() {
        return backredbean;
    }

    public void setBackredbean(String backredbean) {
        this.backredbean = backredbean;
    }

    public String getPostage() {
        return postage;
    }

    public void setPostage(String postage) {
        this.postage = postage;
    }

    public String getGetermethod() {
        return getermethod;
    }

    public void setGetermethod(String getermethod) {
        this.getermethod = getermethod;
    }

    public String getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(String ordernum) {
        this.ordernum = ordernum;
    }

    public String getGoodstype() {
        return goodstype;
    }

    public void setGoodstype(String goodstype) {
        this.goodstype = goodstype;
    }

    public String getItemStatus() {
        return itemStatus;
    }

    public void setItemStatus(String itemStatus) {
        this.itemStatus = itemStatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SelcetPostCartGoodsAttrs that = (SelcetPostCartGoodsAttrs) o;

        if (isSelected != that.isSelected) return false;
        if (goodId != null ? !goodId.equals(that.goodId) : that.goodId != null) return false;
        if (goodsid != null ? !goodsid.equals(that.goodsid) : that.goodsid != null) return false;
        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        if (imgUrl != null ? !imgUrl.equals(that.imgUrl) : that.imgUrl != null) return false;
        if (price != null ? !price.equals(that.price) : that.price != null) return false;
        if (goodsnum != null ? !goodsnum.equals(that.goodsnum) : that.goodsnum != null)
            return false;
        if (attrcollection != null ? !attrcollection.equals(that.attrcollection) : that.attrcollection != null)
            return false;
        if (itemGoodAttrs != null ? !itemGoodAttrs.equals(that.itemGoodAttrs) : that.itemGoodAttrs != null)
            return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (itemStatus != null ? !itemStatus.equals(that.itemStatus) : that.itemStatus != null)
            return false;
        if (stocknum != null ? !stocknum.equals(that.stocknum) : that.stocknum != null)
            return false;
        if (backsilvernum != null ? !backsilvernum.equals(that.backsilvernum) : that.backsilvernum != null)
            return false;
        if (backinnernum != null ? !backinnernum.equals(that.backinnernum) : that.backinnernum != null)
            return false;
        if (backredbean != null ? !backredbean.equals(that.backredbean) : that.backredbean != null)
            return false;
        if (postage != null ? !postage.equals(that.postage) : that.postage != null) return false;
        if (getermethod != null ? !getermethod.equals(that.getermethod) : that.getermethod != null)
            return false;
        if (ordernum != null ? !ordernum.equals(that.ordernum) : that.ordernum != null)
            return false;
        return goodstype != null ? goodstype.equals(that.goodstype) : that.goodstype == null;

    }

    @Override
    public int hashCode() {
        int result = goodId != null ? goodId.hashCode() : 0;
        result = 31 * result + (goodsid != null ? goodsid.hashCode() : 0);
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (imgUrl != null ? imgUrl.hashCode() : 0);
        result = 31 * result + (price != null ? price.hashCode() : 0);
        result = 31 * result + (goodsnum != null ? goodsnum.hashCode() : 0);
        result = 31 * result + (attrcollection != null ? attrcollection.hashCode() : 0);
        result = 31 * result + (itemGoodAttrs != null ? itemGoodAttrs.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (itemStatus != null ? itemStatus.hashCode() : 0);
        result = 31 * result + (stocknum != null ? stocknum.hashCode() : 0);
        result = 31 * result + (backsilvernum != null ? backsilvernum.hashCode() : 0);
        result = 31 * result + (backinnernum != null ? backinnernum.hashCode() : 0);
        result = 31 * result + (backredbean != null ? backredbean.hashCode() : 0);
        result = 31 * result + (postage != null ? postage.hashCode() : 0);
        result = 31 * result + (getermethod != null ? getermethod.hashCode() : 0);
        result = 31 * result + (ordernum != null ? ordernum.hashCode() : 0);
        result = 31 * result + (goodstype != null ? goodstype.hashCode() : 0);
        result = 31 * result + (isSelected ? 1 : 0);
        return result;
    }

    @Override
    public String toString() {
        return "SelcetPostCartGoodsAttrs{" +
                "goodId='" + goodId + '\'' +
                ", goodsid='" + goodsid + '\'' +
                ", name='" + name + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", price='" + price + '\'' +
                ", goodsnum='" + goodsnum + '\'' +
                ", attrcollection='" + attrcollection + '\'' +
                ", itemGoodAttrs=" + itemGoodAttrs +
                ", status='" + status + '\'' +
                ", itemStatus='" + itemStatus + '\'' +
                ", stocknum='" + stocknum + '\'' +
                ", backsilvernum='" + backsilvernum + '\'' +
                ", backinnernum='" + backinnernum + '\'' +
                ", backredbean='" + backredbean + '\'' +
                ", postage='" + postage + '\'' +
                ", getermethod='" + getermethod + '\'' +
                ", ordernum='" + ordernum + '\'' +
                ", goodstype='" + goodstype + '\'' +
                ", isSelected=" + isSelected +
                '}';
    }
}
